package org.dromara.erp.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 费用支出对象 erp_cost_out
 *
 * @author Mr Lei QQ:235921049
 * @date 2024-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("erp_cost_out")
public class ErpCostOut extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 标题
     */
    private String orderNo;

    /**
     * 报账人
     */
    private Long workerId;

    /**
     * 单据数量
     */
    private Long totalNum;

    /**
     * 报销金额
     */
    private BigDecimal totalMoney;

    /**
     * 收款单位
     */
    private Long companyId;

    /**
     * 归属部门
     */
    private Long deptId;

    /**
     * 说明
     */
    private String remark;

    /**
     * 审核状态
     */
    private Integer auditStatus;

    /**
     * 审核备注
     */
    private String auditRemark;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核人
     */
    private Long auditBy;

    /*其他*/
    @TableField(exist = false)
    private List<ErpCostOutInfo> contentInfo;
    @TableField(exist = false)
    private String workerName;
    @TableField(exist = false)
    private String deptName;


}
